package edu.mju.entity;

/**
 * @Author:wyp
 * @Date:2020/5/8 23:53
 */
public class User {
    /**
     * 用户ID（主键约束）
     */
    private Integer userId;
    /**
     * 用户名（唯一约束）
     */
    private String userName;
    /**
     * 密码
     */
    private String userPassword;
    /**
     * 手机号（唯一约束）
     */
    private String userTel;
    /**
     * 数据加密
     */
    private String usersalt;
    /**
     * 性别
     */
    private Byte userSex;
    /**
     * 用户角色
     */
    private String userRole;

    public String getUserRole() {
        return userRole;
    }

    public void setUserRole(String userRole) {
        this.userRole = userRole;
    }

    public User() {
    }

    public User(String userName, String userPassword, String userTel, Byte userSex) {
        this.userName = userName;
        this.userPassword = userPassword;
        this.userTel = userTel;
        this.userSex = userSex;
    }

    public User(Integer userId, String userName, String userPassword, String userTel, String usersalt, Byte userSex,String userRole) {
        this.userId = userId;
        this.userName = userName;
        this.userPassword = userPassword;
        this.userTel = userTel;
        this.usersalt = usersalt;
        this.userSex = userSex;
        this.userRole = userRole;
    }

    public User(Integer userId, String userName, String userPassword, String userTel,  Byte userSex,String userRole) {
        this.userId = userId;
        this.userName = userName;
        this.userPassword = userPassword;
        this.userTel = userTel;
        this.usersalt = usersalt;
        this.userSex = userSex;
        this.userRole = userRole;
    }

    public User(String userName, String userPassword, String userTel, Byte userSex,String userRole) {
        this.userName = userName;
        this.userPassword = userPassword;
        this.userTel = userTel;
        this.userSex = userSex;
        this.userRole = userRole;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getUserTel() {
        return userTel;
    }

    public void setUserTel(String userTel) {
        this.userTel = userTel;
    }

    public String getUsersalt() {
        return usersalt;
    }

    public void setUsersalt(String usersalt) {
        this.usersalt = usersalt;
    }

    public Byte getUserSex() {
        return userSex;
    }

    public void setUserSex(Byte userSex) {
        this.userSex = userSex;
    }
}
